package com.itheim.client.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.itheima.admin.pojo.Flavors;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Author longbosheng
 * @Date 2022/6/15 15:21
 * @PackageName:com.itheima.pojo
 * @ClassName: Dish
 * @Description: TODO
 * @Version 1.0
 */
@Data
@TableName("dish")
@Component
public class Dish {
    @TableId(value ="id",type = IdType.ASSIGN_ID)
    private String id;
    private String type;
    private String name;
    @TableField(value = "category_id")
    private String categoryId;
    private BigDecimal price;
    private String code;
    private String image;
    private String description;
    private int status;
    private int sort;
    @TableField(value = "create_time")
    private Date createTime;
    @TableField(value = "update_time")
    private Date updateTime;
    @TableField(value = "create_user")
    private String createUser;
    @TableField(value = "update_user")
    private String updateUser;
    @TableField(exist = false)
    private List<Flavors> flavors;
    @TableField(exist = false)
    private String categoryName;
    @TableField(exist = false)
    private String copies;
}
